/**
 * Copyright (C) 2010 Krishna Sundaresan <calvinkrishy@gmail.com>
 *      
 * This file is part of webos-datecalculator application.
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

function HelpSceneAssistant(helpFor) {
    this.helpFor = helpFor
}

HelpSceneAssistant.prototype.setup = function() {

    $('first').hide()
	$('first-text').hide()
	$('interval-diff').hide()
	$('interval-diff-text').hide()

    this.controller.setupWidget(Mojo.Menu.appMenu, menuAttrs, {});

};

HelpSceneAssistant.prototype.activate = function(event) {
    $(this.helpFor).show()
	$(this.helpFor + '-text').show()
};

HelpSceneAssistant.prototype.deactivate = function(event) {
	/* remove any event handlers you added in activate and do any other cleanup that should happen before
	   this scene is popped or another scene is pushed on top */
};

HelpSceneAssistant.prototype.cleanup = function(event) {
	/* this function should do any cleanup needed before the scene is destroyed as 
	   a result of being popped off the scene stack */
};
